<template>
  <div>
    <p>{{ value }}</p>
    <button @click="addCount">addCount</button>
  </div>
</template>

<script>
export default {
  props: {
    value: Number,
  },
  methods: {
    addCount() {
      this.$emit("input", this.value + 1);
    },
  },
};
</script>

<style>
</style>